"""
URL configuration for film_manager project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Homea
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, re_path, include

urlpatterns = [
    path('admin/', admin.site.urls),
    re_path(r'm/', include('demo1.urls')),
    # 用户的模块
    re_path('^user/', include('userapp.userone.urls')),
    # 用户的第二个模块 这个模块主要是使用正则表达式
    re_path('^usertwo/', include('userapp.usertwo.urls')),
    # 配置模型对象的访问
    re_path('^', include('userapp.model_one.urls')),
    # 这是model_two访问的路径
    re_path('^two/', include('userapp.model_two.urls')),
    re_path('^t/', include('userapp.model_ddd.urls')),
    re_path('^dtl/', include('userapp.model_dtl.urls')),

]
